import Vue from 'vue'
import App from './App.vue'
//三级联动组件 ---全局组件 
import TypeNav from './components/TypeNav'

Vue.component(TypeNav.name,TypeNav)
Vue.config.productionTip = false

import './mock/mockServe';
import "swiper/css/swiper.css";

import store from './store'
import Carousel from './components/Carousel'
import Pagination from './components/Pagination'

// import {reqGetSearchInfo} from './api';
// console.log(reqGetSearchInfo({}));
Vue.component(Carousel.name,Carousel);
Vue.component(Pagination.name,Pagination);
//引入路由
import router from '@/router';
new Vue({
  render: h => h(App),
  beforeCreate(){
    //全局事件总线$bus的配置
    Vue.prototype.$bus = this;
  },
  router,
  //注册仓库：组件实力身上多了一个$store属性
  store
}).$mount('#app')
